#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:queue_test.py
# author: 马国鑫
# datetime:2022/3/29 12:19
# software: PyCharm

"""
this is function  description 
"""

# import module your need
import multiprocessing

queue = multiprocessing.Queue(5)

queue.put(1)
queue.put([1,2,3])
queue.put({"a":32, "v":35})
queue.put(True)
queue.put("hello")


value = queue.get()
print(value)


value = queue.get()
print(value)
value = queue.get()
print(value)
value = queue.get()
print(value)
value = queue.get()
print(value)

value = queue.get_nowait()
print(value)